<template>
	<view>
		<!-- 收货地址 -->
		<div class="address_info">
			<div class="user_info">
				<div>收货人: {{address.userName}}</div>
				<div>地址: {{address.cityName}}{{address.countyName}}{{address.detailInfo}}</div>
			</div>
			<div class="user_phone">联系电话: {{address.telNumber}}</div>
		</div>
		<!-- 结算商品 -->
		<van-swipe-cell :right-width="65 " :left-width=" 65 " v-for="(item,index) in pay_list" :key="index">
			<van-cell-group>
				<van-card :num="item.goods_number" :price="item.goods_price" desc="描述信息" :title="item.goods_name"
					:thumb=" item.goods_small_logo">
					<view slot="footer">
						<van-stepper :value="item.goods_number" @plus="add(index)" @minus="eee(index)" />
					</view>
				</van-card>
			</van-cell-group>
		</van-swipe-cell>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				address: {},
				pay_list: [],
			};
		},
		onShow() {
			this.address = wx.getStorageSync("address");
			this.pay_list = wx.getStorageSync('cart') || [].forEach(item => {
				return item.flag == true
			})
		},
	}
</script>

<style lang="scss">
	.address_info {
		width: 100%;
		height: 180rpx;
		padding: 20rpx;
		color: #555555;
		background-color: #E5E5E5;
		border-bottom: 3px solid #DD524D;

	}
</style>
